#!/bin/bash
. ./cmd.sh
. ./path.sh
gmmdir=exp/tri3
speakers='FDHC0 FELC0 FJLM0 FMGD0 FMLD0 FNLP0 FPAS0 FPKT0 MBPM0 MCMJ0 MDAB0 MGRT0 MJDH0 MJLN0  MJMP0 MKLT0 MLLL0 MLNT0 MNJM0 MPAM0 MTAS1 MTLS0 MWBT0 MWEW0'

for x in $speakers; do
working_dir=data/test/$x
echo $working_dir

if [ ! -f $working_dir/train.pfile.done ]; then
  steps_pdnn/build_nnet_pfile.sh --cmd "$train_cmd" --every-nth-frame 1 --norm-vars true --do-split true --pfile-unit-size 5 --cv-ratio 0.05 --splice-opts "--left-context=5 --right-context=5" --input-dim 440 $working_dir ${gmmdir}_ali $working_dir
  ( cd $working_dir; rm concat.pfile; )
  touch $working_dir/train.pfile.done
fi
done
